public class GenericMethod {
    public <K, V> void func(K k, V v) {
        System.out.println(k.getClass().getSimpleName());
        System.out.println(v.getClass().getSimpleName());
    }

    public static void main(String[] args) {
        GenericMethod gm = new GenericMethod();
        gm.<Integer, String>func(new Integer(10), new String("generic"));
    }
}
